#!/bin/sh
HOSTNAME=`uci get system.@system[0].hostname`
sed -i '/# vlmcsd/d' /etc/dnsmasq.conf
echo "srv-host=_vlmcs._tcp,$HOSTNAME,1688  # vlmcsd" >> /etc/dnsmasq.conf
EOF
